<?php


namespace App\Http\Controllers;
use Illuminate\Support\Facades\DB;

class MajorlistController extends Controller
{
    public function majorlist(){
        $res=DB::table('direction')->get();
        $arr=[];
        foreach ($res as $key=>$value){
            array_push($arr,$value->dir_name);
        }
        return json_encode($arr);
    }
//    获取    全部 专业 信息
    public function  getAllMajorInfo(){
//        $res=DB::table('direction')->get();
    }
}
